package com.users.rn.kit.bridge.impl.net

import com.users.rn.kit.bridge.RNBridge
import com.users.rn.kit.bridge.RNBridgeModuleName
import com.users.rn.kit.bridge.SimpleRNBridge
import com.facebook.react.bridge.Promise
import com.facebook.react.bridge.ReactContext
import com.facebook.react.bridge.ReadableMap

/**

 * 作者：wolf on 12/25/20 14:51

 * 邮箱：bluce

 */

abstract class KitNetworkModule : SimpleRNBridge() {

    companion object {
        const val RN_MODULE_NAME: String = RNBridgeModuleName.RN_NETWORK
    }

    override fun moduleName(): String {
        return RN_MODULE_NAME
    }

    abstract fun requestNet(context: ReactContext, domin: String, methodName:String, type:String, isLoading: Boolean, params:ReadableMap, promise: Promise)
}